package springboot.Tools;

import springboot.Tools.JSONToSETime.CustomTime;
import springboot.Tools.JSONToSETime.JsonToSETime;
import springboot.http.WXWorkApi;
import springboot.http.httpRes;

import java.util.Date;
import java.util.Map;

/**
 * wxWork
 * springboot.Tools
 * Created by Blue on 2021/9/6.
 */
public class ClientDataApi {

  public httpRes getClientDataByDay(String dataOption) {
    JsonToSETime json = new JsonToSETime(dataOption);
    CustomTime customTime = json.getCustomTime();
    return WXWorkApi.getWeekData(customTime.getStartTime(), customTime.getEndTime());
  }

  public CustomTime getCustomTime(String dataOption) {
    JsonToSETime json = new JsonToSETime(dataOption);
    return json.getCustomTime();
  }
}
